<?php

// $data =  $_REQUEST("http://category.dangdang.com/Standard/Search/Extend/hosts/api/json_api.php?cat_ids=4008149&cat_paths=&method=list.catepagebang|list.catebav|list.caterelatepid|&fileds=product_name,sale_price,percent,sub_title|product_name,sale_price,percent,sub_title|product_name,sale_price,sub_title|&pic_size=x|l|l|a&tag_id=reco_category_top|reco_category_bav|reco_category_alsobuy|cookie_history&jsoncallback=jQuery1113009089998617267114_1577332419414&_=1577332419415");

// echo $data;


$url = "http://category.dangdang.com/Standard/Search/Extend/hosts/api/json_api.php?cat_ids=4008149&cat_paths=&method=list.catepagebang|list.catebav|list.caterelatepid|&fileds=product_name,sale_price,percent,sub_title|product_name,sale_price,percent,sub_title|product_name,sale_price,sub_title|&pic_size=x|l|l|a&tag_id=reco_category_top|reco_category_bav|reco_category_alsobuy|cookie_history&jsoncallback=jQuery1113009089998617267114_1577332419414&_=1577332419415";

   $html = file_get_contents($url);

   //如果出现中文乱码使用下面代码

   //$getcontent = iconv("gb2312", "utf-8",$html);

   echo "<textarea style='width:800px;height:600px;'>".$html."</textarea>";
?>
